package com.lovenote.common.dto;

import java.io.Serializable;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class NoteDto implements Serializable {

	private static final long serialVersionUID = -1299042538643526813L;

	@NotNull(message = "请选择分类，分类不能为空")
	@Digits(fraction = 0, message = "笔记分类不合法", integer = 99999)
	private int catalogId;
	
	@NotNull(message = "笔记内容不能为空")
	@Size(max = 600, message = "笔记长度不能超过600")
	private String content;
	
	private String tags;

	public int getCatalogId() {
		return catalogId;
	}

	public void setCatalogId(int catalogId) {
		this.catalogId = catalogId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}
	
}
